//
//  GJokeTextTVC.h
//  guess
//
//  Created by fank on 15/11/6.
//  Copyright © 2015年 fank. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "JokeSingleTextDataModel.h"
#import "JokeSingleImageDataModel.h"
#import "Define.h"
#import "GHttpEnqine.h"
#import <UIImageView+WebCache.h>

#define UIColorFromRGBValue(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]

@interface GJokeTextTVC : UITableViewCell
-(instancetype)initWithTextData:(JokeSingleTextDataModel  *)singleData;
-(instancetype)initWithImageData:(JokeSingleImageDataModel  *)singleData;

@property NSInteger  index;
@property UIImageView * imageImg;
@property UIViewController * selfVC;
@property UIViewController * GjokeVC;

+(CGSize)heightWithImage:(UIImage *)img;

-(void)setSpitslotImage:(UIImage *)img;

@property (nonatomic,copy) void (^ClickImageBlock)(JokeSingleImageDataModel *singleImageData);
@property (nonatomic,copy) void (^ClickShareBtnBlock)(NSInteger row);
@end
